package com.dqyt.app.controller;

import com.dqyt.app.service.AppManufacturerService;
import com.dqyt.app.service.AppModeService;
import com.dqyt.khjc.bean.ResultMsg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * 型号规格
 */
@RestController
public class AppModelController {

    @Autowired
    private AppModeService appModeService;

    /**
     * 查询型号规格
     * @param request
     * @return
     */
    @RequestMapping(value = "/sample/getmodels", method = {RequestMethod.GET,RequestMethod.POST})
    public ResultMsg getmodels(HttpServletRequest request, long userId, String token,long parentid){
        ResultMsg resultMsg = appModeService.getmodels(request,userId,token,parentid);
        return resultMsg;
    }
}
